<?php
session_start(); 
  include("../../sql/connexionmysql.php");
  include("../../controlleur/utilities.php");
  $_SESSION['admin'] = 1;
  if ($_SESSION['admin'] < 1)
		header("location:/../../index.php");
  
  $matchOrder = $_POST['matchOrder'];
  $matchRound = $_POST['matchRound'];
  $idTournamentDraw = $_POST['idTournamentDraw'];
  global $tournamentId;
  $tournamentId = $idTournamentDraw;
  $tet = mysql_query('DELETE FROM tournamentMatch WHERE matchOrder = ' . $matchOrder . 
      ' AND idTournamentRoundType = ' . $matchRound .
      ' AND idTournamentDraw = ' . $idTournamentDraw);
  include($ROOT . 'page/getMatchJson.php');
?>